Merge pull request #901 from ianblenke/ianblenke/issue896

Addressing issue #896 by checking for leftover pid file

Ian Blenke 8 年 前
コミット
7f4bda9be0
共有1 個のファイルを変更した5 個の追加0 個の削除を含む
  1. 5 0
      docker/scripts/init

+ 5 - 0
docker/scripts/init

@@ -6,6 +6,11 @@ cd /app
6 6
 # Default to the environment variable values set in .env.example
7 7
 source /app/.env.example
8 8
 
9
+# Cleanup any leftover pid file
10
+if [ -f /app/tmp/pids/server.pid ]; then
11
+  rm /app/tmp/pids/server.pid
12
+fi
13
+
9 14
 # is a mysql or postgresql database linked?
10 15
 # requires that the mysql or postgresql containers have exposed
11 16
 # port 3306 and 5432 respectively.